package com.dq.Week2.day09.pritice;

import java.util.Arrays;

public class Demo01 {
    public static void main(String[] args) {
        Hero hero2 = new Hero("sb",100,50);
        Hero hero1 = new Hero("sbb",90,60);


        Hero[] heroes = new Hero[]{hero1,hero2};

        System.out.println(Arrays.toString(heroes));

        Arrays.sort(heroes,new HeroComparator());




            System.out.println(heroes);
        }

}
